home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1999 / MacHack 1999.toast / The Hacks / DesktopDoubler / Patches / PatchesPrefix.h < prev   
Encoding:
C/C++ Source or Header  |  1999-06-25  |  1.5 KB  |  53 lines  |  [TEXT/CWIE]

  1. #ifndef _PATCHESPREFIX_
  2. #define _PATCHESPREFIX_
  3.  
  4.  
  5. #if __MC68K__
  6.     #if __option(macsbug)
  7.         #define DEBUG            1
  8.     #else
  9.         #define DEBUG            0
  10.     #endif
  11. #elif __POWERPC__
  12.     #if __option(traceback )
  13.         #define DEBUG            1
  14.     #else
  15.         #define DEBUG            0
  16.     #endif
  17. #endif
  18.  
  19. #define DCON                    DEBUG
  20.  
  21.  
  22. // Project prefix for dprintf calls.  This is optional but should be implemented,
  23. // as it provides the ability to distinguish where the output came from when more
  24. // than one entity is using DCon at the same time.  This must be manually added
  25. // to the beginning of each call: dprintf(kDConPrefix "...
  26. #if __MC68K__
  27.     #define kDConPrefix                "Patches68K: "
  28.     #define kDConLogName            "Patches68K"
  29. #elif __POWERPC__
  30.     #define kDConPrefix                "PatchesPPC: "
  31.     #define kDConLogName            "PatchesPPC"
  32. #endif
  33. #define DCONLOG                    DCON && 0
  34.  
  35.  
  36. // CallTracing uses DCon to print an indented listing of when a function enters
  37. // and exits, thus generating a call trace.  Optionally, it can also be used to
  38. // (very) roughly measure the amount of time spent inside a function and all of
  39. // its sub-functions.  To enable call tracing you must add a single line to the
  40. // top of any functions to be traced: CallTrace trace("function name");
  41. #define CALLTRACE                0
  42. #define CALLTRACE_TIMER            0
  43.  
  44.  
  45. // This overrides DCon functions at boot time and funnels a copy of any output
  46. // destined for DCon straight to a VRAM console.  Later after has DCon has had
  47. // a chance to load it'll turn itself off so as to not be completely annoying.
  48. #define MACPRINTENABLED            1
  49. #define SMALLER_MACPRINT        0
  50.  
  51.  
  52. #endif /* _PATCHESPREFIX_ */
  53.